package com.itheima.date;

import java.util.Date;

public class Demo02 {

    public static void main(String[] args) {
        Date date = new Date();
        long time = date.getTime();
        System.out.println(time);
        long l = System.currentTimeMillis();
        System.out.println(l);

        date.setTime(l-1000*60);
        System.out.println(date);

        System.out.println(date.getDate());//每个月的第几天
        System.out.println(date.getYear());//1900
        System.out.println(date.getMonth());
        System.out.println(date.getDay());//周二
        System.out.println(date.getHours());
        System.out.println(date.getMinutes());
        date.setYear(150);
        date.setDate(32);
        System.out.println(date);

    }
}
